package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.apache.poi.util.Internal;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@Document(collection = "pay_category_config")
public class PayCategoryConfig extends EntityBase {
    /**
     * 类型,
     * ca:证书
     * item:商品
     */
    @Indexed
    private String type = "ca";
    @Indexed
    private String activityId;
    @Transient
    private String activityName;
    /**
     * 证书序列ID
     */
    @Indexed
    private String caGroupId;
    private String caGroupName;
    /**
     * 名称
     */
    private String name;
    /**
     * 营销语
     */
    private String marketingClaim;
    /**
     * 商品主图
     */
    private String mainImageUrl;
    /**
     * 图片组
     */
    private List<String> imageUrls = new ArrayList<>();
    /**
     * 按钮文字
     */
    private String buttonName;
    /**
     * 优先级
     */
    private Integer priority;
    /**
     * 是否发布,默认不发布
     */
    private Boolean published = Boolean.FALSE;
    /**
     * 默认勾选优级别，默认==1
     */
    @Indexed(background = true)
    private Integer choicePriority = 1;
}
